<?xml version="1.0" encoding="ISO-8859-1" ?>
<jsp:root version="1.2" xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ice="http://www.icesoft.com/icefaces/component">
	<jsp:directive.page contentType="text/html;charset=ISO-8859-1"
		pageEncoding="ISO-8859-1" />
	<f:view>
		<ice:outputDeclaration doctypeRoot="html"
			doctypePublic="-//W3C//DTD HTML 4.01 Transitional//EN"
			doctypeSystem="http://www.w3.org/TR/html4/loose.dtd" />
		<html>

			<head>
				<title>Linea</title>
				<link rel="stylesheet" type="text/css"
					href="./xmlhttp/css/rime/rime.css" />
				<link rel="stylesheet" type="text/css" href="./css/Clases_Qs.css" />
				<script type="text/javascript" src="js/Funciones.js"></script>
			</head>

			<body style="-rave-layout: grid" background="./Media/img/fondo.jpg">
				<table width="100%" cellpadding="0" cellspacing="0"
					style="vertical-align: top" border="0">
					<tr align="center">
						<td align="center" valign="top">
							<ice:panelGrid border="0" cellpadding="0" cellspacing="0">
								<jsp:directive.include file="Cabecera.jsp" />
							</ice:panelGrid>
						</td>
					</tr>
				</table>

				<table width="100%" cellpadding="0" cellspacing="0">
					<tr align="center">
						<td align="center" valign="top">
							<ice:panelGrid columns="2" cellspacing="0" cellpadding="0"
								border="0" columnClasses="Conf_panelgrid1">
								<ice:panelGrid width="220"
									style='background-image: url("./Media/img/fondo_tree.jpg"); background-repeat: no-repeat;'>
									<jsp:directive.include file="menutree.jsp" />
								</ice:panelGrid>
								<ice:panelGrid width="575"
									style="vertical-align: top;  margin-top: 0px;">

									<ice:form partialSubmit="true" id="formulario"
										style='margin-left: 35px;'>
										<ice:panelGrid width="626">
											<ice:panelGrid width="100%"
												style='text-align: center; height: 40px; background-image: url("./Media/img/Titulo.gif"); background-position: center; background-repeat: no-repeat'
												dir="RTL">


												<ice:outputText value="LINEA" styleClass="tituloform" />
											</ice:panelGrid>
											<ice:panelGrid columns="1" border="0"
												style="margin-left: 140px; width: 320px; border-top-width: 1px; border-right-width: 1px; border-left-width: 1px; border-bottom-width: 1px; border-right-color: #B3BFCE; border-right-style: solid; border-bottom-color: #B3BFCE; border-top-color: #B3BFCE; border-bottom-style: solid; border-left-style: solid; border-top-style: solid; border-left-color: #B3BFCE">
												<ice:panelGrid columns="2" style="width: 200px; "
													cellpadding="0" cellspacing="0" border="0" dir="LTR">
													<ice:outputText value="&#160;&#160;&#160;Codigo&#160;: "
														style="color:#004080; font-size: 12px; font-weight: bold; text-align: left; " />

													<ice:panelGrid dir="LTR" columns="3" cellspacing="0"
														border="0" style="width: 138px"
														styleClass="Conf_panelgrid2">
														<ice:inputText value="#{Linea_MB.bcodigo}"
															disabled="#{!Linea_MB.swnuevo}"
															actionListener="#{Linea_MB.validaId}"
															binding="#{Linea_MB.txtcodigo}" tabindex="1" id="codigo"
															maxlength="12" title="Codigo de bodega"
															style="width: 119px">
														</ice:inputText>
													</ice:panelGrid>

													<ice:outputText value="Nombre&#160;: "
														style="color:#004080; font-size: 12px; font-weight: bold;  text-align: left;" />
													<ice:inputText value="#{Linea_MB.bnombre}"
														partialSubmit="true" binding="#{Linea_MB.txtnombre}"
														id="nombrebod" title="Nombre de bodega" tabindex="2"
														disabled="#{!Linea_MB.sweditando}" style="width: 230px">
													</ice:inputText>
















													<ice:outputText
														value="Ult. Nivel&#160;: "
														style="color:#004080; font-size: 12px;   text-align: left;" />
													<ice:panelGrid columns="1" dir="LTR">
														<ice:selectBooleanCheckbox value="#{Linea_MB.bultimo}"
															onkeydown="manejoEnterCambioCampo(Ice.EventModel.Event.adaptToKeyEvent(event,this));"
															tabindex="3" disabled="#{!Linea_MB.sweditando}"
															partialSubmit="true" />
													</ice:panelGrid>


													<ice:outputText
														value="&#160;&#160;&#160;&#160;&#160;Activa&#160;: "
														style="color:#004080; font-size: 12px;   text-align: left;" />
													<ice:panelGrid columns="1" dir="LTR">
														<ice:selectBooleanCheckbox value="#{Linea_MB.bactivo}"
															onkeydown="manejoEnterCambioCampo(Ice.EventModel.Event.adaptToKeyEvent(event,this));"
															tabindex="4" disabled="#{!Linea_MB.sweditando}"
															partialSubmit="true" />
													</ice:panelGrid>




												</ice:panelGrid>
											</ice:panelGrid>

											<ice:panelGrid width="400"
												style='margin-left: 200px; text-align: center;'
												columnClasses="Conf_panelgrid1">
												<ice:panelGrid columns="4" border="0" cellpadding="2"
													cellspacing="2">




													<ice:commandButton action="#{Linea_MB.action_modificar}"
														visible="#{!Linea_MB.sweditando}" styleClass="botonv"
														value="MODIFICAR" tabindex="9" />
													<ice:commandButton
														actionListener="#{Linea_MB.toggleModalguardar}"
														visible="#{Linea_MB.sweditando}" styleClass="botonv"
														value="GUARDAR" tabindex="5" />

													<ice:commandButton styleClass="botonv" value="CANCELAR"
														visible="#{Linea_MB.sweditando}"
														actionListener="#{Linea_MB.toggleModalcancelar}" />



													<ice:commandButton action="#{Linea_MB.action_salir}"
														visible="#{!Linea_MB.sweditando}" styleClass="botonv"
														value="SALIR" tabindex="9" />

												</ice:panelGrid>
											</ice:panelGrid>

											<ice:panelGrid columns="5" cellpadding="0" border="0"
												cellspacing="0" style="height: 37px; width: 635px">





												<ice:panelGrid style="width: 377px">
													<ice:messages id="msg"
														style="width: 10px; height: 300px; color: #AA0000; text-align: left; font-family: Verdana, Arial, Sans-Serif; font-size: 10px" />
												</ice:panelGrid>

											</ice:panelGrid>






											<!-- FPOPUP BODEG d  -->


											<ice:panelPopup id="popupenviar" draggable="false"
												modal="true" visible="#{Linea_MB.modalRenderedguardar}"
												autoCentre="true" styleClass="corePopup"
												style=" width: 400px; height: 100px;">
												<f:facet name="header">
													<ice:panelGroup styleClass="popupHeaderWrapper">
														<ice:outputText value="Confirmacion..."
															styleClass="popupHeaderText" />
													</ice:panelGroup>
												</f:facet>
												<f:facet name="body">
													<ice:panelGroup styleClass="popupBody">
														<ice:outputText styleClass="qs_label"
															value="Realmente desea guardar este registro ?" />
														<br />
														<br />
														<center>
															<ice:commandButton type="submit" value="Si"
																action="#{Linea_MB.action_guardar}" />
															<ice:commandButton type="submit" value="No"
																actionListener="#{Linea_MB.toggleModalguardar}" />

														</center>
													</ice:panelGroup>
												</f:facet>
											</ice:panelPopup>


											<ice:panelPopup id="popupguardar" draggable="false"
												modal="true" visible="#{Linea_MB.modalRenderedcancelar}"
												autoCentre="true" styleClass="corePopup"
												style=" width: 400px; height: 100px;">
												<f:facet name="header">
													<ice:panelGroup styleClass="popupHeaderWrapper">
														<ice:outputText value="Confirmacion..."
															styleClass="popupHeaderText" />
													</ice:panelGroup>
												</f:facet>
												<f:facet name="body">
													<ice:panelGroup styleClass="popupBody">
														<ice:outputText styleClass="qs_label"
															value="Realmente desea cancelar los cambios ?" />
														<br />
														<br />
														<center>
															<ice:commandButton type="submit" value="Si"
																action="#{Linea_MB.action_cancelar}" />
															<ice:commandButton type="submit" value="No"
																actionListener="#{Linea_MB.toggleModalcancelar}" />

														</center>
													</ice:panelGroup>
												</f:facet>
											</ice:panelPopup>



										</ice:panelGrid>
									</ice:form>


								</ice:panelGrid>
							</ice:panelGrid>

						</td>
					</tr>
				</table>
			</body>
		</html>
	</f:view>
</jsp:root>